import React from "react";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Login from "../page/login";
import RegistrationPage from "../page/RegistrationPage";
import HomePage from "../page/HomePage";
import WelcomePage from "../page/WelcomePage";
import WebViewPage from "../page/WebViewPage";
import DetailPage from "../page/DetailPage";
import SortKeyPage from "../page/SortKeyPage";
import SearchPage from "../page/SearchPage";
import CustomKeyPage from "../page/CustomKeyPage";
import AboutPage from "../page/about/AboutPage";
import AboutMePage from "../page/about/AboutMePage";
import CodePushPage from "../page/CodePushPage";

const Stack = createNativeStackNavigator();

// 配置出Tab页以外的页面
function AppNavigator() {
  return (
      <Stack.Navigator >
          <Stack.Screen
          name="WelcomePage"
          component={WelcomePage}
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="Login"
          component={Login}
          //不展示头部标题栏
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="RegistrationPage"
          component={RegistrationPage}
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="HomePage"
          component={HomePage}
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="WebViewPage"
          component={WebViewPage}
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="DetailPage"
          component={DetailPage}
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="SortKeyPage"
          component={SortKeyPage}
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="SearchPage"
          component={SearchPage}
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="CustomKeyPage"
          component={CustomKeyPage}
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="AboutPage"
          component={AboutPage}
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="AboutMePage"
          component={AboutMePage}
          options={{ headerShown: false }}
        />
        <Stack.Screen
          name="CodePushPage"
          component={CodePushPage}
          options={{ headerShown: false }}
        />
      </Stack.Navigator>
  );
}

export default AppNavigator